Nevron Open Vision Documentation
Nevron.Nov Namespace / NPromise<TResult> Class / CastObject Method


In This Topic
    CastObject Method
    In This Topic
    Creates a promise that casts the object result of the specified promise, to the TResult type.
    Syntax
    'Declaration
     
    
    Public Shared Function CastObject( _
       ByVal promise As NPromise(Of Object) _
    ) As NPromise(Of TResult)
    'Usage
     
    
    Dim promise As NPromise(Of Object)
    Dim value As NPromise(Of TResult)
     
    value = NPromise(Of TResult).CastObject(promise)
    public static NPromise<TResult> CastObject( 
       NPromise<object> promise
    )

    Parameters

    promise
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also